import {get,postJSON,upload} from "@/utils/http/createHttp.js"

const apiCou  = {
    // 获取所有优惠券
    getAllArticle:()=>{
        return get("/api/user/getAllCoupon")
    },
    // 添加优惠券
    addArticle:(data)=>{
        return postJSON("/coupon/add",data)
    },
    // 更新 
    UpdateArticle:(data)=>{
        return postJSON("/coupon/update",data)
    },
    // 删除
    deleteArticle:(data)=>{
        return postJSON("/coupon/delete",data)
    }
}

export default apiCou